<template>
  <div>
    <div class="box-2">
      <div class="left-box">
        <img :src="item.taskTypeImg" alt="">
        <span class="over-hide-1">{{ item.taskTitle }}</span>
      </div>
      <div class="right-box">
        <div class="top">${{ (item.dailyAmount+item.reviewAmount+item.forwardAmount).toFixed(1) }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props:['item'],
  methods:{
    updateItem(index,item){
      this.$emit('updateItem',{...item,index:index})
    }
  }
}
</script>

<style scoped lang="scss">
.box-2{
  width: 343px;
  height: 66px;
  background: #FFFFFF;
  border-radius: 10px 10px 10px 10px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .left-box{
    width: 60%;
    height: 66px;
    display: flex;
    align-items: center;
    padding: 15px 13px;
    box-sizing: border-box;
    img{
      width: 40px;
      height: 40px;
      object-fit: cover;
    }
    span{
      font-weight: 400;
      font-size: 16px;
      color: #242B35;
      margin-left: 10px;
    }
  }
  .right-box{
    width: 40%;
    height: 66px;
    padding: 10px 13px;
    box-sizing: border-box;
    .top{
      height: 66px;
      line-height: 45px;
      font-weight: bold;
      font-size: 16px;
      color: #533DF1;
      text-align: right;
    }
    .btn-bottom{
      margin-top: 5px;
      text-align: right;
      width: 100%;
      img{
        margin-left: 5px;
        width: 28px;
        height: 28px;
        object-fit: cover;
      }
    }
  }
}
</style>